const AnyProxy = require('anyproxy');
const options = {
  port: 8083,
  rule:require('./proxy_rule'),
  webInterface: {
    enable: true,
    webPort: 8002
  },
  forceProxyHttps: true,
  wsIntercept: false, // 不开启websocket代理
  silent: true
};
const proxyServer = new AnyProxy.ProxyServer(options);
proxyServer.on('ready', () => { 
	console.log('启动网络监听')
});
proxyServer.on('error', (e) => { 
	console.log('发生错误')	
});
proxyServer.start();